package com.testMain;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 贾明祯
 * @ClassName Test2
 * @Date 2021/4/1 9:35
 * @Introduce
 */
public class Test2 {
    public static void main(String[] args) {
        String str = "123";
        System.out.println(StringLenth(str));
        List<String> list = new ArrayList<>();
        list.forEach(a ->
                System.out.println(a)
        );
    }
    private static int StringLenth(String... str){
        System.out.println(str[0]);

        return str.length;
    }
}
